package cn.zysuyuan.item.mapper;

import cn.zysuyuan.item.entity.Permission;
import cn.zysuyuan.item.entity.UserAndRole;

import java.util.List;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-03-18 15:29
 */
public interface UserMapper {
    int delete(String id);
    int insert(List<UserAndRole> list);

    List<Permission> findUserPermission(String id);

    List<Permission> findAllPermission();

    List<String> getRoleIds(String id);
}
